package org.jeecg.modules.demo.mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: yx_shop_sku
 * @Author: jeecg-boot
 * @Date: 2023-12-07
 * @Version: V1.0
 */
@Data
@TableName("yx_shop_sku")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "yx_shop_sku对象", description = "yx_shop_sku")
public class YxShopSku implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;
    /**
     * 规格名称
     */
    @Excel(name = "规格名称", width = 15)
    @ApiModelProperty(value = "规格名称")
    private String skuName;
    /**
     * 商品id
     */
    @Excel(name = "商品id", width = 15)
    @ApiModelProperty(value = "商品id")
    private Long storeId;
    /**
     * 价格
     */
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private BigDecimal skuPrice;
    /**
     * 会员价格
     */
    @Excel(name = "会员价格", width = 15)
    @ApiModelProperty(value = "会员价格")
    private BigDecimal vipPrice;
    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
    /**
     * 门店id
     */
    @Excel(name = "门店id", width = 15)
    @ApiModelProperty(value = "门店id")
    private Integer merId;
    /**
     * 门店名称
     */
    @Excel(name = "门店名称", width = 15)
    @ApiModelProperty(value = "门店名称")
    private String merName;
    /**
     * 是否删除（0 未删除 1 删除）
     */
    @Excel(name = "是否删除（0 未删除 1 删除）", width = 15)
    @ApiModelProperty(value = "是否删除（0 未删除 1 删除）")
    @TableLogic
    private Integer isDel;
    /**
     * 库存
     */
    @Excel(name = "库存", width = 15)
    @ApiModelProperty(value = "库存")
    private Integer stock;
    /**
     * 销量
     */
    @Excel(name = "销量", width = 15)
    @ApiModelProperty(value = "销量")
    private Integer sales;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String storeName;
    /**
     * 商品json
     */
    @Excel(name = "商品json", width = 15)
    @ApiModelProperty(value = "商品json")
    private String specIdGroup;
}
